package com.stockz.ui.swing.core;

import java.beans.PropertyVetoException;

import com.stockz.ui.swing.charting.util.SwingUtil;
import com.stockz.ui.swing.widget.JInternalFrame;

public abstract class View extends JInternalFrame {
	private static final long serialVersionUID = 1345550343392832555L;
	
	public View(String title) {
		super(title);
	}

	public void showAtFront(){
		try {
			setSelected(true);
			setMaximum(true);
			moveToFront();
		} catch (PropertyVetoException e) {
			SwingUtil.reportException(e);
		}
	}

}
